package com.awake.common.result;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    FAIL(201, "失败"),
    LOGIN_ERROR(208, "认证失败"),
    USER_NOT_EXIST(204, "用户不存在"),
    PASSWORD_ERROR(205, "密码错误"),
    USER_FORBIDDEN(206, "用户禁用中");

    private Integer code;
    private String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
